package com.bjpowernode.dataservice.mapper;

import com.bjpowernode.api.model.User;
import com.bjpowernode.api.pojo.UserAccountInfoDto;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {

    //统计注册人数
    int selectCountUser();
    //查询手机号
    User selectByPhone(@Param("phone") String phone);
    //添加记录，获取主键值
    int insertReturnPrimaryKey(User user);

    //用户登录
    User selectLogin(String phone, String newPassword);


    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int updateRealname(String phone, String name, String idCard);
    /*获取用户和资金信息*/
    UserAccountInfoDto queryUserAllById(Integer uid);
}